home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Presentations / Presentations ’90 / A⁄Rose Techniques / ClTool / Glob.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-16  |  2.1 KB  |  75 lines  |  [TEXT/MPS ]

  1. /*
  2.  *    glob.h - Global definitions for clister.
  3.  *    Mark D. Rustad    86/06/06.
  4.  *
  5.  *    Note that for the defining instance, this file is included with
  6.  *    "GLOBAL" #define-d to "".
  7.  */
  8.  
  9. #ifndef    GLOBAL
  10. #define    _GLOB_REF 1
  11. #define    GLOBAL extern
  12. #endif    GLOBAL
  13.  
  14.  
  15. /*
  16.  *    Definitions.
  17.  */
  18.  
  19. #define MAXLINE        256        /* Maximum line length                    */
  20. #define    MAXPAGES    999        /* Maximum number of pages in a file    */
  21. //#define PAGESZ        56        /* No. of printable lines on a page        */
  22. //#define    LPAGESZ        98        /* No. of printable lines on LW page    */
  23. #define TITLESIZE    70        /* Max. length of a title or subtitle    */
  24. //#define    MAXFILES    100        /* Maximum number of input files        */
  25.  
  26.  
  27.  
  28.  
  29. /*
  30.  *    Structures.
  31.  */
  32.  
  33. struct finfo
  34. {
  35.     char    *fname;                /* Points to file name    */
  36.     short    ntabs;                /* Tab stop setting        */
  37. };
  38.  
  39.  
  40. /*
  41.  *    Globals.
  42.  */
  43.  
  44. GLOBAL char    LineBuf[MAXLINE+1];            /* Holds source line        */
  45. GLOBAL char    Title[TITLESIZE+1];            /* Holds title                */
  46. GLOBAL char    Init_title[TITLESIZE+1];    /* Initial title            */
  47. GLOBAL char    Subtitle[TITLESIZE+1];        /* Holds sub-title            */
  48. GLOBAL char    Subsubtitle[TITLESIZE+1];    /* Holds sub-sub-title        */
  49. GLOBAL char    **Prop_str;                    /* Handle to proprietary string    */
  50. GLOBAL char    Tmpstr[MAXLINE+1];            /* Temporary string            */
  51. GLOBAL FILE    *Fd;                        /* Ptr to file descriptor    */
  52. GLOBAL short    BOpt;                    /* True if border wanted    */
  53. GLOBAL short    HOpt;                    /* True if page headers wanted */
  54. GLOBAL short    NOpt;                    /* True if line numbers wanted    */
  55. GLOBAL short    POpt;                    /* True if to mark proprietary    */
  56. GLOBAL short    PSOpt;                    /* True if page-setup wanted    */
  57. GLOBAL short    ROpt;                    /* True if reverse-order printing */
  58. GLOBAL short    Nfiles;                    /* No. of entries in Finfo array    */
  59. GLOBAL short    TFNum;                    /* Text font number */
  60. GLOBAL short    TFSize;                    /* Text font size */
  61. GLOBAL short    HFNum;                    /* Header font number */
  62. GLOBAL short    HFSize;                    /* Header font size */
  63. GLOBAL short    LSOpt;                    /* Line-spacing percentage    */
  64. GLOBAL struct finfo    *Finfo;                /* Points to file info array */
  65.  
  66. GLOBAL char    **Nullstr;                    /* Handle to null string    */
  67.  
  68.  
  69. #ifdef    _GLOB_REF
  70. #undef    GLOBAL
  71. #undef    _GLOB_REF
  72. #endif    _GLOB_REF
  73.  
  74.  
  75. /*    End of glob.h.    */